import { RouteObject } from 'react-router-dom'
import{ lazy } from 'react'; 
export const routes: RouteObject[] = [
  {
    path: '/',
    Component: lazy(() => import('@/views/home/pages')),
  },
  {
    path: '/about',
    Component: lazy(() => import('@/views/about/pages')),
  },
  {
    path: '/login',
    Component: lazy(() => import('@/views/login/pages')),
  },
  // 可以添加 404 页面
  {
    path: '*',
    Component: lazy(() => import('@/views/404/pages')),
  }
]